------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/wesleyblundell/Dropbox/Wes_Supplemental_NEI/JAERE_Replication/Replication_package/log/TABLE_4_COL2AND5PL.log
  log type:  text
 opened on:  15 May 2024, 08:06:15

. use "$rootpath/processed_data/Estimation_Data.dta", clear

. drop if key_estimation_sample==0
(273,947 observations deleted)

.   
. replace naics=naics*1000 if naics<1000
(403 real changes made)

. replace naics=naics*100 if naics<10000
(4,690 real changes made)

. replace naics=naics*10 if naics<100000
(189,186 real changes made)

. 
. gen n3=floor(naics/1000)

. 
. egen test1000=nvals(treatXpost), by(n3)

. replace n3=929 if test1000<5
(1,458 real changes made)

. 
. gen n3fe=year*1000+n3

. 
. tabulate n3fe, gen(n3fe_)

       n3fe |      Freq.     Percent        Cum.
------------+-----------------------------------
    2010111 |         80        0.01        0.01
    2010112 |         66        0.01        0.02
    2010115 |        366        0.05        0.07
    2010211 |      3,110        0.44        0.52
    2010212 |      1,612        0.23        0.75
    2010213 |         87        0.01        0.76
    2010221 |      3,382        0.48        1.25
    2010236 |         52        0.01        1.25
    2010237 |         80        0.01        1.26
    2010238 |         89        0.01        1.28
    2010311 |      1,534        0.22        1.50
    2010312 |        148        0.02        1.52
    2010313 |        166        0.02        1.54
    2010314 |         25        0.00        1.54
    2010315 |         15        0.00        1.55
    2010316 |         34        0.00        1.55
    2010321 |        781        0.11        1.66
    2010322 |        591        0.08        1.75
    2010323 |        769        0.11        1.86
    2010324 |      1,021        0.15        2.00
    2010325 |      1,896        0.27        2.28
    2010326 |      1,141        0.16        2.44
    2010327 |      1,766        0.25        2.69
    2010331 |        868        0.12        2.82
    2010332 |      1,947        0.28        3.09
    2010333 |        607        0.09        3.18
    2010334 |        518        0.07        3.25
    2010335 |        241        0.03        3.29
    2010336 |        972        0.14        3.43
    2010337 |        586        0.08        3.51
    2010339 |        392        0.06        3.57
    2010423 |        274        0.04        3.61
    2010424 |      1,836        0.26        3.87
    2010425 |         22        0.00        3.87
    2010441 |         99        0.01        3.89
    2010444 |        103        0.01        3.90
    2010445 |        109        0.02        3.92
    2010447 |      6,842        0.98        4.90
    2010452 |        135        0.02        4.92
    2010453 |          8        0.00        4.92
    2010454 |        131        0.02        4.94
    2010481 |         34        0.00        4.94
    2010482 |         37        0.01        4.95
    2010483 |          8        0.00        4.95
    2010484 |         45        0.01        4.95
    2010485 |         49        0.01        4.96
    2010486 |      1,925        0.28        5.24
    2010488 |     19,758        2.83        8.06
    2010491 |         17        0.00        8.06
    2010492 |         14        0.00        8.07
    2010493 |        215        0.03        8.10
    2010511 |         78        0.01        8.11
    2010515 |        388        0.06        8.16
    2010517 |        869        0.12        8.29
    2010518 |         17        0.00        8.29
    2010522 |         58        0.01        8.30
    2010523 |         10        0.00        8.30
    2010524 |         21        0.00        8.30
    2010531 |        253        0.04        8.34
    2010532 |         61        0.01        8.35
    2010541 |        354        0.05        8.40
    2010551 |          6        0.00        8.40
    2010561 |         84        0.01        8.41
    2010562 |      1,476        0.21        8.62
    2010611 |        659        0.09        8.72
    2010621 |         63        0.01        8.73
    2010622 |        797        0.11        8.84
    2010623 |         69        0.01        8.85
    2010624 |         18        0.00        8.85
    2010711 |         28        0.00        8.86
    2010712 |         22        0.00        8.86
    2010713 |         92        0.01        8.87
    2010721 |        104        0.01        8.89
    2010722 |        175        0.03        8.91
    2010811 |      1,558        0.22        9.14
    2010812 |        689        0.10        9.23
    2010813 |         32        0.00        9.24
    2010921 |        737        0.11        9.34
    2010922 |        488        0.07        9.41
    2010923 |         24        0.00        9.42
    2010924 |        147        0.02        9.44
    2010926 |         68        0.01        9.45
    2010927 |         12        0.00        9.45
    2010928 |        215        0.03        9.48
    2010929 |        115        0.02        9.50
    2011111 |         96        0.01        9.51
    2011112 |         86        0.01        9.52
    2011115 |        515        0.07        9.60
    2011211 |      4,497        0.64       10.24
    2011212 |      1,989        0.28       10.53
    2011213 |        129        0.02       10.54
    2011221 |      4,006        0.57       11.12
    2011236 |         68        0.01       11.13
    2011237 |        107        0.02       11.14
    2011238 |        111        0.02       11.16
    2011311 |      1,863        0.27       11.42
    2011312 |        178        0.03       11.45
    2011313 |        203        0.03       11.48
    2011314 |         38        0.01       11.48
    2011315 |         25        0.00       11.49
    2011316 |         42        0.01       11.49
    2011321 |        929        0.13       11.63
    2011322 |        654        0.09       11.72
    2011323 |        845        0.12       11.84
    2011324 |      1,147        0.16       12.01
    2011325 |      2,327        0.33       12.34
    2011326 |      1,314        0.19       12.53
    2011327 |      2,049        0.29       12.82
    2011331 |        953        0.14       12.96
    2011332 |      2,251        0.32       13.28
    2011333 |        751        0.11       13.39
    2011334 |        633        0.09       13.48
    2011335 |        282        0.04       13.52
    2011336 |      1,088        0.16       13.67
    2011337 |        716        0.10       13.77
    2011339 |        488        0.07       13.84
    2011423 |        332        0.05       13.89
    2011424 |      2,330        0.33       14.22
    2011425 |         22        0.00       14.23
    2011441 |        116        0.02       14.24
    2011444 |        139        0.02       14.26
    2011445 |        126        0.02       14.28
    2011447 |      4,153        0.59       14.88
    2011452 |        183        0.03       14.90
    2011453 |          8        0.00       14.90
    2011454 |        104        0.01       14.92
    2011481 |         37        0.01       14.92
    2011482 |         39        0.01       14.93
    2011483 |          8        0.00       14.93
    2011484 |         53        0.01       14.94
    2011485 |         58        0.01       14.95
    2011486 |      2,090        0.30       15.25
    2011488 |     18,959        2.71       17.96
    2011491 |         19        0.00       17.96
    2011492 |         17        0.00       17.96
    2011493 |        237        0.03       18.00
    2011511 |         91        0.01       18.01
    2011515 |        475        0.07       18.08
    2011517 |      1,153        0.16       18.24
    2011518 |         44        0.01       18.25
    2011522 |         81        0.01       18.26
    2011523 |         17        0.00       18.26
    2011524 |         29        0.00       18.27
    2011531 |        356        0.05       18.32
    2011532 |         77        0.01       18.33
    2011541 |        439        0.06       18.39
    2011551 |         13        0.00       18.39
    2011561 |         92        0.01       18.41
    2011562 |      1,457        0.21       18.62
    2011611 |        738        0.11       18.72
    2011621 |         99        0.01       18.74
    2011622 |        892        0.13       18.86
    2011623 |         97        0.01       18.88
    2011624 |         27        0.00       18.88
    2011711 |         31        0.00       18.88
    2011712 |         25        0.00       18.89
    2011713 |         89        0.01       18.90
    2011721 |        127        0.02       18.92
    2011722 |        194        0.03       18.95
    2011811 |      1,961        0.28       19.23
    2011812 |        875        0.13       19.35
    2011813 |         36        0.01       19.36
    2011921 |        850        0.12       19.48
    2011922 |        626        0.09       19.57
    2011923 |         32        0.00       19.57
    2011924 |        171        0.02       19.60
    2011926 |         75        0.01       19.61
    2011927 |         12        0.00       19.61
    2011928 |        218        0.03       19.64
    2011929 |        140        0.02       19.66
    2012111 |         99        0.01       19.68
    2012112 |         82        0.01       19.69
    2012115 |        504        0.07       19.76
    2012211 |      4,496        0.64       20.40
    2012212 |      1,999        0.29       20.69
    2012213 |        129        0.02       20.71
    2012221 |      4,088        0.58       21.29
    2012236 |         70        0.01       21.30
    2012237 |        104        0.01       21.32
    2012238 |        117        0.02       21.33
    2012311 |      1,873        0.27       21.60
    2012312 |        178        0.03       21.63
    2012313 |        202        0.03       21.66
    2012314 |         38        0.01       21.66
    2012315 |         25        0.00       21.67
    2012316 |         42        0.01       21.67
    2012321 |        934        0.13       21.80
    2012322 |        654        0.09       21.90
    2012323 |        843        0.12       22.02
    2012324 |      1,150        0.16       22.18
    2012325 |      2,342        0.34       22.52
    2012326 |      1,314        0.19       22.71
    2012327 |      2,049        0.29       23.00
    2012331 |        955        0.14       23.14
    2012332 |      2,247        0.32       23.46
    2012333 |        742        0.11       23.56
    2012334 |        632        0.09       23.65
    2012335 |        284        0.04       23.69
    2012336 |      1,093        0.16       23.85
    2012337 |        716        0.10       23.95
    2012339 |        483        0.07       24.02
    2012423 |        329        0.05       24.07
    2012424 |      2,333        0.33       24.40
    2012425 |         24        0.00       24.41
    2012441 |        118        0.02       24.42
    2012444 |        145        0.02       24.44
    2012445 |        125        0.02       24.46
    2012447 |      6,855        0.98       25.44
    2012452 |        189        0.03       25.47
    2012453 |          9        0.00       25.47
    2012454 |        137        0.02       25.49
    2012481 |         37        0.01       25.50
    2012482 |         41        0.01       25.50
    2012483 |          8        0.00       25.50
    2012484 |         54        0.01       25.51
    2012485 |         58        0.01       25.52
    2012486 |      2,119        0.30       25.82
    2012488 |     19,794        2.83       28.65
    2012491 |         20        0.00       28.66
    2012492 |         18        0.00       28.66
    2012493 |        254        0.04       28.70
    2012511 |         91        0.01       28.71
    2012515 |        475        0.07       28.78
    2012517 |      1,148        0.16       28.94
    2012518 |         44        0.01       28.95
    2012522 |         81        0.01       28.96
    2012523 |         17        0.00       28.96
    2012524 |         29        0.00       28.97
    2012531 |        363        0.05       29.02
    2012532 |         75        0.01       29.03
    2012541 |        443        0.06       29.09
    2012551 |         13        0.00       29.09
    2012561 |        108        0.02       29.11
    2012562 |      1,544        0.22       29.33
    2012611 |        756        0.11       29.44
    2012621 |         99        0.01       29.45
    2012622 |        898        0.13       29.58
    2012623 |         98        0.01       29.59
    2012624 |         27        0.00       29.60
    2012711 |         31        0.00       29.60
    2012712 |         25        0.00       29.61
    2012713 |        106        0.02       29.62
    2012721 |        132        0.02       29.64
    2012722 |        193        0.03       29.67
    2012811 |      1,965        0.28       29.95
    2012812 |        789        0.11       30.06
    2012813 |         40        0.01       30.07
    2012921 |        886        0.13       30.19
    2012922 |        636        0.09       30.29
    2012923 |         35        0.01       30.29
    2012924 |        175        0.03       30.32
    2012926 |         73        0.01       30.33
    2012927 |         12        0.00       30.33
    2012928 |        227        0.03       30.36
    2012929 |        141        0.02       30.38
    2013111 |         99        0.01       30.39
    2013112 |         83        0.01       30.41
    2013115 |        505        0.07       30.48
    2013211 |      4,507        0.64       31.12
    2013212 |      2,000        0.29       31.41
    2013213 |        129        0.02       31.43
    2013221 |      4,096        0.59       32.01
    2013236 |         70        0.01       32.02
    2013237 |        106        0.02       32.04
    2013238 |        119        0.02       32.06
    2013311 |      1,872        0.27       32.32
    2013312 |        176        0.03       32.35
    2013313 |        204        0.03       32.38
    2013314 |         40        0.01       32.38
    2013315 |         25        0.00       32.39
    2013316 |         42        0.01       32.39
    2013321 |        945        0.14       32.53
    2013322 |        657        0.09       32.62
    2013323 |        848        0.12       32.74
    2013324 |      1,151        0.16       32.91
    2013325 |      2,339        0.33       33.24
    2013326 |      1,323        0.19       33.43
    2013327 |      2,053        0.29       33.73
    2013331 |        957        0.14       33.86
    2013332 |      2,262        0.32       34.19
    2013333 |        755        0.11       34.30
    2013334 |        636        0.09       34.39
    2013335 |        284        0.04       34.43
    2013336 |      1,095        0.16       34.58
    2013337 |        717        0.10       34.69
    2013339 |        484        0.07       34.76
    2013423 |        332        0.05       34.80
    2013424 |      2,338        0.33       35.14
    2013425 |         22        0.00       35.14
    2013441 |        117        0.02       35.16
    2013444 |        142        0.02       35.18
    2013445 |        124        0.02       35.20
    2013447 |      6,858        0.98       36.18
    2013452 |        190        0.03       36.20
    2013453 |          9        0.00       36.20
    2013454 |        135        0.02       36.22
    2013481 |         38        0.01       36.23
    2013482 |         41        0.01       36.24
    2013483 |          9        0.00       36.24
    2013484 |         54        0.01       36.24
    2013485 |         59        0.01       36.25
    2013486 |      2,118        0.30       36.56
    2013488 |     19,789        2.83       39.39
    2013491 |         20        0.00       39.39
    2013492 |         17        0.00       39.39
    2013493 |        252        0.04       39.43
    2013511 |         91        0.01       39.44
    2013515 |        475        0.07       39.51
    2013517 |      1,148        0.16       39.67
    2013518 |         44        0.01       39.68
    2013522 |         81        0.01       39.69
    2013523 |         17        0.00       39.69
    2013524 |         31        0.00       39.70
    2013531 |        363        0.05       39.75
    2013532 |         73        0.01       39.76
    2013541 |        442        0.06       39.82
    2013551 |         13        0.00       39.83
    2013561 |        108        0.02       39.84
    2013562 |      1,545        0.22       40.06
    2013611 |        756        0.11       40.17
    2013621 |         99        0.01       40.18
    2013622 |        899        0.13       40.31
    2013623 |         98        0.01       40.33
    2013624 |         27        0.00       40.33
    2013711 |         31        0.00       40.34
    2013712 |         25        0.00       40.34
    2013713 |        104        0.01       40.35
    2013721 |        132        0.02       40.37
    2013722 |        193        0.03       40.40
    2013811 |      1,970        0.28       40.68
    2013812 |        817        0.12       40.80
    2013813 |         40        0.01       40.80
    2013921 |        885        0.13       40.93
    2013922 |        639        0.09       41.02
    2013923 |         34        0.00       41.03
    2013924 |        176        0.03       41.05
    2013926 |         75        0.01       41.06
    2013927 |         12        0.00       41.07
    2013928 |        226        0.03       41.10
    2013929 |        141        0.02       41.12
    2014111 |        118        0.02       41.13
    2014112 |         96        0.01       41.15
    2014115 |        445        0.06       41.21
    2014211 |      5,512        0.79       42.00
    2014212 |      2,232        0.32       42.32
    2014213 |        137        0.02       42.34
    2014221 |      4,275        0.61       42.95
    2014236 |         85        0.01       42.96
    2014237 |        150        0.02       42.98
    2014238 |        163        0.02       43.01
    2014311 |      2,059        0.29       43.30
    2014312 |        192        0.03       43.33
    2014313 |        241        0.03       43.36
    2014314 |         50        0.01       43.37
    2014315 |         31        0.00       43.38
    2014316 |         44        0.01       43.38
    2014321 |      1,037        0.15       43.53
    2014322 |        683        0.10       43.63
    2014323 |        888        0.13       43.76
    2014324 |      1,236        0.18       43.93
    2014325 |      2,467        0.35       44.29
    2014326 |      1,391        0.20       44.48
    2014327 |      2,189        0.31       44.80
    2014331 |      1,002        0.14       44.94
    2014332 |      2,339        0.33       45.28
    2014333 |        824        0.12       45.39
    2014334 |        663        0.09       45.49
    2014335 |        312        0.04       45.53
    2014336 |      1,180        0.17       45.70
    2014337 |        836        0.12       45.82
    2014339 |        565        0.08       45.90
    2014423 |        386        0.06       45.96
    2014424 |      2,120        0.30       46.26
    2014425 |         89        0.01       46.27
    2014441 |        113        0.02       46.29
    2014444 |        164        0.02       46.31
    2014445 |        104        0.01       46.33
    2014447 |      4,355        0.62       46.95
    2014452 |        215        0.03       46.98
    2014453 |         12        0.00       46.98
    2014454 |        151        0.02       47.00
    2014481 |         43        0.01       47.01
    2014482 |        200        0.03       47.04
    2014483 |         11        0.00       47.04
    2014484 |         55        0.01       47.05
    2014485 |         75        0.01       47.06
    2014486 |      2,130        0.30       47.36
    2014488 |     19,681        2.82       50.18
    2014491 |         23        0.00       50.18
    2014492 |         20        0.00       50.19
    2014493 |        271        0.04       50.22
    2014511 |        105        0.02       50.24
    2014515 |        122        0.02       50.26
    2014517 |      1,609        0.23       50.49
    2014518 |        108        0.02       50.50
    2014522 |         92        0.01       50.52
    2014523 |         26        0.00       50.52
    2014524 |         43        0.01       50.53
    2014531 |        410        0.06       50.58
    2014532 |         76        0.01       50.60
    2014541 |        555        0.08       50.67
    2014551 |         16        0.00       50.68
    2014561 |        139        0.02       50.70
    2014562 |      1,514        0.22       50.91
    2014611 |        799        0.11       51.03
    2014621 |        120        0.02       51.05
    2014622 |        948        0.14       51.18
    2014623 |        115        0.02       51.20
    2014624 |         37        0.01       51.20
    2014711 |         71        0.01       51.21
    2014712 |         29        0.00       51.22
    2014713 |         86        0.01       51.23
    2014721 |        153        0.02       51.25
    2014722 |        164        0.02       51.27
    2014811 |      2,031        0.29       51.56
    2014812 |        937        0.13       51.70
    2014813 |         48        0.01       51.71
    2014921 |        870        0.12       51.83
    2014922 |        676        0.10       51.93
    2014923 |         36        0.01       51.93
    2014924 |        178        0.03       51.96
    2014926 |         76        0.01       51.97
    2014927 |         12        0.00       51.97
    2014928 |        224        0.03       52.00
    2014929 |        176        0.03       52.03
    2015111 |        120        0.02       52.04
    2015112 |         98        0.01       52.06
    2015115 |        444        0.06       52.12
    2015211 |      5,516        0.79       52.91
    2015212 |      2,244        0.32       53.23
    2015213 |        137        0.02       53.25
    2015221 |      4,302        0.62       53.87
    2015236 |         85        0.01       53.88
    2015237 |        152        0.02       53.90
    2015238 |        163        0.02       53.92
    2015311 |      2,076        0.30       54.22
    2015312 |        191        0.03       54.25
    2015313 |        242        0.03       54.28
    2015314 |         51        0.01       54.29
    2015315 |         31        0.00       54.30
    2015316 |         45        0.01       54.30
    2015321 |      1,053        0.15       54.45
    2015322 |        690        0.10       54.55
    2015323 |        910        0.13       54.68
    2015324 |      1,246        0.18       54.86
    2015325 |      2,472        0.35       55.21
    2015326 |      1,416        0.20       55.42
    2015327 |      2,200        0.31       55.73
    2015331 |      1,006        0.14       55.87
    2015332 |      2,368        0.34       56.21
    2015333 |        831        0.12       56.33
    2015334 |        667        0.10       56.43
    2015335 |        317        0.05       56.47
    2015336 |      1,189        0.17       56.64
    2015337 |        846        0.12       56.76
    2015339 |        572        0.08       56.85
    2015423 |        388        0.06       56.90
    2015424 |      2,221        0.32       57.22
    2015425 |         90        0.01       57.23
    2015441 |        113        0.02       57.25
    2015444 |        166        0.02       57.27
    2015445 |        104        0.01       57.29
    2015447 |      4,356        0.62       57.91
    2015452 |        215        0.03       57.94
    2015453 |         12        0.00       57.94
    2015454 |        151        0.02       57.96
    2015481 |         43        0.01       57.97
    2015482 |        200        0.03       58.00
    2015483 |         11        0.00       58.00
    2015484 |         55        0.01       58.01
    2015485 |         76        0.01       58.02
    2015486 |      2,144        0.31       58.33
    2015488 |     19,683        2.82       61.14
    2015491 |         23        0.00       61.14
    2015492 |         21        0.00       61.15
    2015493 |        278        0.04       61.19
    2015511 |        105        0.02       61.20
    2015515 |        122        0.02       61.22
    2015517 |      1,608        0.23       61.45
    2015518 |        108        0.02       61.47
    2015522 |         92        0.01       61.48
    2015523 |         26        0.00       61.48
    2015524 |         43        0.01       61.49
    2015531 |        414        0.06       61.55
    2015532 |         76        0.01       61.56
    2015541 |        564        0.08       61.64
    2015551 |         16        0.00       61.64
    2015561 |        140        0.02       61.66
    2015562 |      1,532        0.22       61.88
    2015611 |        806        0.12       62.00
    2015621 |        121        0.02       62.01
    2015622 |        952        0.14       62.15
    2015623 |        116        0.02       62.17
    2015624 |         37        0.01       62.17
    2015711 |         71        0.01       62.18
    2015712 |         29        0.00       62.19
    2015713 |         86        0.01       62.20
    2015721 |        153        0.02       62.22
    2015722 |        164        0.02       62.24
    2015811 |      2,035        0.29       62.53
    2015812 |        940        0.13       62.67
    2015813 |         48        0.01       62.68
    2015921 |        871        0.12       62.80
    2015922 |        679        0.10       62.90
    2015923 |         38        0.01       62.90
    2015924 |        179        0.03       62.93
    2015926 |         77        0.01       62.94
    2015927 |         12        0.00       62.94
    2015928 |        225        0.03       62.97
    2015929 |        176        0.03       63.00
    2016111 |        120        0.02       63.02
    2016112 |         99        0.01       63.03
    2016115 |        434        0.06       63.09
    2016211 |      2,937        0.42       63.51
    2016212 |      2,228        0.32       63.83
    2016213 |         74        0.01       63.84
    2016221 |      4,267        0.61       64.45
    2016236 |         70        0.01       64.46
    2016237 |        138        0.02       64.48
    2016238 |        123        0.02       64.50
    2016311 |      2,056        0.29       64.79
    2016312 |        183        0.03       64.82
    2016313 |        222        0.03       64.85
    2016314 |         41        0.01       64.86
    2016315 |         24        0.00       64.86
    2016316 |         32        0.00       64.87
    2016321 |        949        0.14       65.00
    2016322 |        594        0.08       65.09
    2016323 |        384        0.05       65.14
    2016324 |      1,231        0.18       65.32
    2016325 |      2,411        0.34       65.66
    2016326 |      1,242        0.18       65.84
    2016327 |      2,147        0.31       66.15
    2016331 |        976        0.14       66.29
    2016332 |      1,745        0.25       66.54
    2016333 |        626        0.09       66.63
    2016334 |        551        0.08       66.70
    2016335 |        267        0.04       66.74
    2016336 |        989        0.14       66.88
    2016337 |        510        0.07       66.96
    2016339 |        400        0.06       67.01
    2016423 |        347        0.05       67.06
    2016424 |      2,221        0.32       67.38
    2016425 |         84        0.01       67.39
    2016441 |         60        0.01       67.40
    2016444 |        157        0.02       67.42
    2016445 |        103        0.01       67.44
    2016447 |      4,349        0.62       68.06
    2016452 |        215        0.03       68.09
    2016453 |         12        0.00       68.09
    2016454 |        149        0.02       68.12
    2016481 |         42        0.01       68.12
    2016482 |         53        0.01       68.13
    2016483 |         10        0.00       68.13
    2016484 |         50        0.01       68.14
    2016485 |         65        0.01       68.15
    2016486 |      1,902        0.27       68.42
    2016488 |     19,845        2.84       71.26
    2016491 |         19        0.00       71.26
    2016492 |         18        0.00       71.26
    2016493 |        273        0.04       71.30
    2016511 |         65        0.01       71.31
    2016515 |        122        0.02       71.33
    2016517 |      1,604        0.23       71.56
    2016518 |        107        0.02       71.57
    2016522 |         91        0.01       71.59
    2016523 |         26        0.00       71.59
    2016524 |         43        0.01       71.60
    2016531 |        407        0.06       71.66
    2016532 |         57        0.01       71.66
    2016541 |        528        0.08       71.74
    2016551 |         16        0.00       71.74
    2016561 |        129        0.02       71.76
    2016562 |      1,514        0.22       71.98
    2016611 |        786        0.11       72.09
    2016621 |        115        0.02       72.11
    2016622 |        944        0.14       72.24
    2016623 |        115        0.02       72.26
    2016624 |         36        0.01       72.26
    2016711 |         63        0.01       72.27
    2016712 |         29        0.00       72.27
    2016713 |         83        0.01       72.29
    2016721 |        152        0.02       72.31
    2016722 |        163        0.02       72.33
    2016811 |        343        0.05       72.38
    2016812 |        615        0.09       72.47
    2016813 |         48        0.01       72.48
    2016921 |        859        0.12       72.60
    2016922 |        670        0.10       72.69
    2016923 |         35        0.01       72.70
    2016924 |        179        0.03       72.73
    2016926 |         75        0.01       72.74
    2016927 |         12        0.00       72.74
    2016928 |        223        0.03       72.77
    2016929 |        166        0.02       72.79
    2017111 |        101        0.01       72.81
    2017112 |         68        0.01       72.82
    2017115 |        408        0.06       72.88
    2017211 |      2,674        0.38       73.26
    2017212 |      1,935        0.28       73.54
    2017213 |        119        0.02       73.55
    2017221 |      3,777        0.54       74.09
    2017236 |         67        0.01       74.10
    2017237 |        128        0.02       74.12
    2017238 |        131        0.02       74.14
    2017311 |      1,884        0.27       74.41
    2017312 |        175        0.03       74.43
    2017313 |        198        0.03       74.46
    2017314 |         43        0.01       74.47
    2017315 |         33        0.00       74.47
    2017316 |         40        0.01       74.48
    2017321 |        934        0.13       74.61
    2017322 |        645        0.09       74.70
    2017323 |        817        0.12       74.82
    2017324 |      1,155        0.17       74.99
    2017325 |      2,336        0.33       75.32
    2017326 |      1,333        0.19       75.51
    2017327 |      1,871        0.27       75.78
    2017331 |        944        0.14       75.91
    2017332 |      2,186        0.31       76.23
    2017333 |        760        0.11       76.34
    2017334 |        552        0.08       76.41
    2017335 |        276        0.04       76.45
    2017336 |      1,130        0.16       76.62
    2017337 |        762        0.11       76.72
    2017339 |        477        0.07       76.79
    2017423 |        343        0.05       76.84
    2017424 |      2,010        0.29       77.13
    2017425 |         66        0.01       77.14
    2017441 |        108        0.02       77.15
    2017444 |        154        0.02       77.18
    2017445 |        119        0.02       77.19
    2017447 |      6,800        0.97       78.17
    2017452 |        181        0.03       78.19
    2017453 |         14        0.00       78.19
    2017454 |        142        0.02       78.21
    2017481 |         38        0.01       78.22
    2017482 |        234        0.03       78.25
    2017483 |         10        0.00       78.25
    2017484 |         53        0.01       78.26
    2017485 |         70        0.01       78.27
    2017486 |      2,058        0.29       78.57
    2017488 |     19,284        2.76       81.33
    2017491 |         19        0.00       81.33
    2017492 |         16        0.00       81.33
    2017493 |        271        0.04       81.37
    2017511 |         79        0.01       81.38
    2017515 |        112        0.02       81.40
    2017517 |      1,354        0.19       81.59
    2017518 |         87        0.01       81.60
    2017522 |         71        0.01       81.61
    2017523 |         18        0.00       81.62
    2017524 |         38        0.01       81.62
    2017531 |        275        0.04       81.66
    2017532 |         63        0.01       81.67
    2017541 |        429        0.06       81.73
    2017551 |         12        0.00       81.73
    2017561 |        118        0.02       81.75
    2017562 |      1,515        0.22       81.97
    2017611 |        745        0.11       82.07
    2017621 |         92        0.01       82.09
    2017622 |        882        0.13       82.21
    2017623 |         98        0.01       82.23
    2017624 |         33        0.00       82.23
    2017711 |         67        0.01       82.24
    2017712 |         21        0.00       82.24
    2017713 |         94        0.01       82.26
    2017721 |        132        0.02       82.28
    2017722 |        157        0.02       82.30
    2017811 |      1,808        0.26       82.56
    2017812 |        797        0.11       82.67
    2017813 |         40        0.01       82.68
    2017921 |        795        0.11       82.79
    2017922 |        563        0.08       82.87
    2017923 |         33        0.00       82.88
    2017924 |        158        0.02       82.90
    2017926 |         57        0.01       82.91
    2017927 |         12        0.00       82.91
    2017928 |        230        0.03       82.94
    2017929 |        137        0.02       82.96
    2018111 |        102        0.01       82.98
    2018112 |         68        0.01       82.98
    2018115 |        404        0.06       83.04
    2018211 |      2,656        0.38       83.42
    2018212 |      1,927        0.28       83.70
    2018213 |        121        0.02       83.72
    2018221 |      3,759        0.54       84.25
    2018236 |         57        0.01       84.26
    2018237 |        120        0.02       84.28
    2018238 |         99        0.01       84.29
    2018311 |      1,909        0.27       84.57
    2018312 |        167        0.02       84.59
    2018313 |        185        0.03       84.62
    2018314 |         35        0.01       84.62
    2018315 |         31        0.00       84.63
    2018316 |         31        0.00       84.63
    2018321 |        856        0.12       84.75
    2018322 |        564        0.08       84.83
    2018323 |        368        0.05       84.89
    2018324 |      1,145        0.16       85.05
    2018325 |      2,285        0.33       85.38
    2018326 |      1,180        0.17       85.55
    2018327 |      1,849        0.26       85.81
    2018331 |        919        0.13       85.94
    2018332 |      1,673        0.24       86.18
    2018333 |        589        0.08       86.27
    2018334 |        462        0.07       86.33
    2018335 |        248        0.04       86.37
    2018336 |        956        0.14       86.50
    2018337 |        462        0.07       86.57
    2018339 |        354        0.05       86.62
    2018423 |        309        0.04       86.66
    2018424 |      2,078        0.30       86.96
    2018425 |         60        0.01       86.97
    2018441 |         55        0.01       86.98
    2018444 |        147        0.02       87.00
    2018445 |        119        0.02       87.02
    2018447 |      6,783        0.97       87.99
    2018452 |        181        0.03       88.01
    2018453 |         14        0.00       88.01
    2018454 |        140        0.02       88.03
    2018481 |         37        0.01       88.04
    2018482 |        233        0.03       88.07
    2018483 |         10        0.00       88.07
    2018484 |         48        0.01       88.08
    2018485 |         62        0.01       88.09
    2018486 |      2,056        0.29       88.38
    2018488 |     19,264        2.76       91.14
    2018491 |         15        0.00       91.14
    2018492 |         14        0.00       91.14
    2018493 |        269        0.04       91.18
    2018511 |         52        0.01       91.19
    2018515 |        111        0.02       91.21
    2018517 |      1,351        0.19       91.40
    2018518 |         86        0.01       91.41
    2018522 |         70        0.01       91.42
    2018523 |         18        0.00       91.42
    2018524 |         38        0.01       91.43
    2018531 |        274        0.04       91.47
    2018532 |         48        0.01       91.48
    2018541 |        404        0.06       91.53
    2018551 |         12        0.00       91.54
    2018561 |        107        0.02       91.55
    2018562 |      1,497        0.21       91.76
    2018611 |        729        0.10       91.87
    2018621 |         92        0.01       91.88
    2018622 |        883        0.13       92.01
    2018623 |         98        0.01       92.02
    2018624 |         32        0.00       92.03
    2018711 |         62        0.01       92.04
    2018712 |         21        0.00       92.04
    2018713 |         91        0.01       92.05
    2018721 |        131        0.02       92.07
    2018722 |        157        0.02       92.09
    2018811 |        227        0.03       92.13
    2018812 |        521        0.07       92.20
    2018813 |         39        0.01       92.21
    2018921 |        793        0.11       92.32
    2018922 |        558        0.08       92.40
    2018923 |         32        0.00       92.40
    2018924 |        160        0.02       92.43
    2018926 |         55        0.01       92.43
    2018927 |         12        0.00       92.44
    2018928 |        230        0.03       92.47
    2018929 |        129        0.02       92.49
    2019111 |        103        0.01       92.50
    2019112 |         71        0.01       92.51
    2019115 |        408        0.06       92.57
    2019211 |      2,631        0.38       92.95
    2019212 |      1,907        0.27       93.22
    2019213 |        119        0.02       93.24
    2019221 |      3,721        0.53       93.77
    2019236 |         67        0.01       93.78
    2019237 |        127        0.02       93.80
    2019238 |        130        0.02       93.82
    2019311 |      1,905        0.27       94.09
    2019312 |        175        0.03       94.11
    2019313 |        191        0.03       94.14
    2019314 |         42        0.01       94.15
    2019315 |         33        0.00       94.15
    2019316 |         40        0.01       94.16
    2019321 |        924        0.13       94.29
    2019322 |        646        0.09       94.38
    2019323 |        798        0.11       94.50
    2019324 |      1,144        0.16       94.66
    2019325 |      2,317        0.33       94.99
    2019326 |      1,310        0.19       95.18
    2019327 |      1,848        0.26       95.44
    2019331 |        931        0.13       95.58
    2019332 |      2,168        0.31       95.89
    2019333 |        756        0.11       95.99
    2019334 |        545        0.08       96.07
    2019335 |        271        0.04       96.11
    2019336 |      1,119        0.16       96.27
    2019337 |        748        0.11       96.38
    2019339 |        468        0.07       96.44
    2019423 |        340        0.05       96.49
    2019424 |      2,085        0.30       96.79
    2019425 |         66        0.01       96.80
    2019441 |        107        0.02       96.82
    2019444 |        152        0.02       96.84
    2019445 |        119        0.02       96.86
    2019447 |      6,784        0.97       97.83
    2019452 |        181        0.03       97.85
    2019453 |         16        0.00       97.85
    2019454 |        141        0.02       97.87
    2019481 |         35        0.01       97.88
    2019482 |        234        0.03       97.91
    2019483 |         11        0.00       97.91
    2019484 |         52        0.01       97.92
    2019485 |         71        0.01       97.93
    2019486 |      2,042        0.29       98.22
    2019488 |      1,023        0.15       98.37
    2019491 |         16        0.00       98.37
    2019492 |         15        0.00       98.37
    2019493 |        272        0.04       98.41
    2019511 |         77        0.01       98.42
    2019515 |        111        0.02       98.44
    2019517 |      1,353        0.19       98.63
    2019518 |         87        0.01       98.65
    2019522 |         71        0.01       98.66
    2019523 |         20        0.00       98.66
    2019524 |         38        0.01       98.67
    2019531 |        278        0.04       98.70
    2019532 |         62        0.01       98.71
    2019541 |        432        0.06       98.78
    2019551 |         12        0.00       98.78
    2019561 |        118        0.02       98.79
    2019562 |      1,516        0.22       99.01
    2019611 |        741        0.11       99.12
    2019621 |         92        0.01       99.13
    2019622 |        880        0.13       99.26
    2019623 |         98        0.01       99.27
    2019624 |         33        0.00       99.27
    2019711 |         67        0.01       99.28
    2019712 |         21        0.00       99.29
    2019713 |         94        0.01       99.30
    2019721 |        132        0.02       99.32
    2019722 |        157        0.02       99.34
    2019811 |      1,791        0.26       99.60
    2019812 |        780        0.11       99.71
    2019813 |         40        0.01       99.72
    2019921 |        795        0.11       99.83
    2019922 |        564        0.08       99.91
    2019923 |         33        0.00       99.91
    2019924 |        160        0.02       99.94
    2019926 |         59        0.01       99.95
    2019927 |         12        0.00       99.95
    2019928 |        227        0.03       99.98
    2019929 |        137        0.02      100.00
------------+-----------------------------------
      Total |    699,013      100.00

. gen codefe=0 if year<2015
(335,334 missing values generated)

. replace codefe=year+avg_old_code_prob if year>2014
(335,334 real changes made)

. tabulate codefe, gen(codefe_)

     codefe |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |    363,679       52.03       52.03
       2015 |      1,544        0.22       52.25
   2015.054 |        179        0.03       52.27
   2015.083 |      1,465        0.21       52.48
   2015.106 |        571        0.08       52.57
   2015.123 |      2,570        0.37       52.93
   2015.136 |        341        0.05       52.98
    2015.15 |        997        0.14       53.12
   2015.158 |      1,758        0.25       53.38
   2015.167 |        184        0.03       53.40
   2015.182 |        554        0.08       53.48
     2015.2 |      1,045        0.15       53.63
   2015.213 |      1,921        0.27       53.91
   2015.231 |      2,567        0.37       54.27
   2015.237 |      1,646        0.24       54.51
   2015.248 |      6,648        0.95       55.46
    2015.25 |      1,876        0.27       55.73
   2015.258 |        599        0.09       55.81
   2015.267 |        412        0.06       55.87
   2015.321 |     20,422        2.92       58.79
   2015.325 |        484        0.07       58.86
   2015.333 |        355        0.05       58.91
   2015.347 |      1,885        0.27       59.18
   2015.354 |        481        0.07       59.25
   2015.368 |        504        0.07       59.32
   2015.369 |      1,137        0.16       59.49
   2015.375 |        606        0.09       59.57
   2015.389 |      1,717        0.25       59.82
   2015.417 |        859        0.12       59.94
    2015.44 |        803        0.11       60.06
   2015.441 |        521        0.07       60.13
   2015.471 |        283        0.04       60.17
   2015.474 |        424        0.06       60.23
     2015.5 |        846        0.12       60.35
   2015.519 |        494        0.07       60.42
   2015.522 |      1,269        0.18       60.61
   2015.527 |      6,539        0.94       61.54
    2015.54 |      1,016        0.15       61.69
    2015.57 |      2,066        0.30       61.98
   2015.571 |      1,023        0.15       62.13
     2015.6 |        173        0.02       62.15
   2015.667 |      1,219        0.17       62.33
   2015.772 |      4,355        0.62       62.95
       2016 |      1,850        0.26       63.22
   2016.054 |        182        0.03       63.24
   2016.083 |      1,395        0.20       63.44
   2016.106 |        325        0.05       63.49
   2016.123 |      2,414        0.35       63.83
   2016.136 |        250        0.04       63.87
    2016.15 |        895        0.13       64.00
   2016.158 |      1,634        0.23       64.23
   2016.167 |        181        0.03       64.26
   2016.182 |        551        0.08       64.34
     2016.2 |      1,039        0.15       64.48
   2016.213 |      1,791        0.26       64.74
   2016.231 |      2,487        0.36       65.10
   2016.237 |      1,537        0.22       65.32
   2016.248 |      3,679        0.53       65.84
    2016.25 |      1,832        0.26       66.10
   2016.258 |        595        0.09       66.19
   2016.267 |        413        0.06       66.25
   2016.321 |     17,698        2.53       68.78
   2016.325 |        480        0.07       68.85
   2016.333 |        353        0.05       68.90
   2016.347 |      1,679        0.24       69.14
   2016.354 |        473        0.07       69.21
   2016.368 |        505        0.07       69.28
   2016.369 |      1,104        0.16       69.44
   2016.375 |        600        0.09       69.52
   2016.389 |      1,715        0.25       69.77
   2016.417 |        858        0.12       69.89
    2016.44 |        792        0.11       70.00
   2016.441 |        516        0.07       70.08
   2016.471 |        282        0.04       70.12
   2016.474 |        378        0.05       70.17
     2016.5 |        833        0.12       70.29
   2016.519 |        483        0.07       70.36
   2016.522 |      1,263        0.18       70.54
   2016.527 |      5,844        0.84       71.38
    2016.54 |        994        0.14       71.52
    2016.57 |      1,940        0.28       71.80
   2016.571 |        954        0.14       71.93
     2016.6 |        165        0.02       71.96
   2016.667 |      1,150        0.16       72.12
   2016.772 |      4,365        0.62       72.75
       2017 |      1,807        0.26       73.01
   2017.054 |        178        0.03       73.03
   2017.083 |      1,402        0.20       73.23
   2017.106 |        602        0.09       73.32
   2017.123 |      2,132        0.31       73.62
   2017.136 |        325        0.05       73.67
    2017.15 |        933        0.13       73.80
   2017.158 |      1,615        0.23       74.03
   2017.167 |        176        0.03       74.06
   2017.182 |        518        0.07       74.13
     2017.2 |      1,008        0.14       74.28
   2017.213 |      1,844        0.26       74.54
   2017.231 |      2,328        0.33       74.87
   2017.237 |      1,595        0.23       75.10
   2017.248 |      3,918        0.56       75.66
    2017.25 |      1,786        0.26       75.92
   2017.258 |        575        0.08       76.00
   2017.267 |        411        0.06       76.06
   2017.321 |     20,907        2.99       79.05
   2017.325 |        469        0.07       79.12
   2017.333 |        343        0.05       79.17
   2017.347 |      1,785        0.26       79.42
   2017.354 |        473        0.07       79.49
   2017.368 |        500        0.07       79.56
   2017.369 |      1,138        0.16       79.72
   2017.375 |        425        0.06       79.78
   2017.389 |      1,573        0.23       80.01
   2017.417 |        666        0.10       80.10
    2017.44 |        774        0.11       80.22
   2017.441 |        500        0.07       80.29
   2017.471 |        274        0.04       80.33
   2017.474 |        387        0.06       80.38
     2017.5 |        791        0.11       80.49
   2017.519 |        477        0.07       80.56
   2017.522 |      1,150        0.16       80.73
   2017.527 |      6,136        0.88       81.61
    2017.54 |        986        0.14       81.75
    2017.57 |      1,920        0.27       82.02
   2017.571 |        904        0.13       82.15
     2017.6 |        162        0.02       82.17
   2017.667 |      1,155        0.17       82.34
   2017.772 |      4,028        0.58       82.92
       2018 |      1,778        0.25       83.17
   2018.054 |        174        0.02       83.19
   2018.083 |      1,354        0.19       83.39
   2018.106 |        601        0.09       83.47
   2018.123 |      1,996        0.29       83.76
   2018.136 |        324        0.05       83.81
    2018.15 |        845        0.12       83.93
   2018.158 |      1,555        0.22       84.15
   2018.167 |        175        0.03       84.17
   2018.182 |        517        0.07       84.25
     2018.2 |      1,001        0.14       84.39
   2018.213 |      1,722        0.25       84.64
   2018.231 |      2,224        0.32       84.96
   2018.237 |      1,494        0.21       85.17
   2018.248 |      3,545        0.51       85.68
    2018.25 |      1,742        0.25       85.93
   2018.258 |        573        0.08       86.01
   2018.267 |        410        0.06       86.07
   2018.321 |     18,412        2.63       88.70
   2018.325 |        469        0.07       88.77
   2018.333 |        343        0.05       88.82
   2018.347 |      1,613        0.23       89.05
   2018.354 |        469        0.07       89.11
   2018.368 |        502        0.07       89.19
   2018.369 |      1,119        0.16       89.35
   2018.375 |        422        0.06       89.41
   2018.389 |      1,538        0.22       89.63
   2018.417 |        820        0.12       89.74
    2018.44 |        769        0.11       89.85
   2018.441 |        500        0.07       89.93
   2018.471 |        273        0.04       89.96
   2018.474 |        364        0.05       90.02
     2018.5 |        795        0.11       90.13
   2018.519 |        466        0.07       90.20
   2018.522 |      1,152        0.16       90.36
   2018.527 |      5,552        0.79       91.16
    2018.54 |        987        0.14       91.30
    2018.57 |      1,831        0.26       91.56
   2018.571 |        898        0.13       91.69
     2018.6 |        157        0.02       91.71
   2018.667 |      1,103        0.16       91.87
   2018.772 |      4,012        0.57       92.44
       2019 |        867        0.12       92.57
   2019.054 |         86        0.01       92.58
   2019.083 |        828        0.12       92.70
   2019.106 |        482        0.07       92.77
   2019.123 |      1,615        0.23       93.00
   2019.136 |        156        0.02       93.02
    2019.15 |        602        0.09       93.11
   2019.158 |      1,111        0.16       93.26
   2019.167 |         35        0.01       93.27
   2019.182 |        251        0.04       93.31
     2019.2 |        266        0.04       93.34
   2019.213 |      1,361        0.19       93.54
   2019.231 |      1,823        0.26       93.80
   2019.237 |        778        0.11       93.91
   2019.248 |      3,412        0.49       94.40
    2019.25 |      1,524        0.22       94.62
   2019.258 |        156        0.02       94.64
   2019.267 |        103        0.01       94.65
   2019.321 |     19,999        2.86       97.51
   2019.325 |        155        0.02       97.54
   2019.333 |         62        0.01       97.55
   2019.347 |      1,106        0.16       97.70
   2019.354 |        272        0.04       97.74
   2019.368 |        198        0.03       97.77
   2019.369 |        575        0.08       97.85
   2019.375 |        303        0.04       97.90
   2019.389 |      1,124        0.16       98.06
   2019.417 |        616        0.09       98.15
    2019.44 |        323        0.05       98.19
   2019.441 |        264        0.04       98.23
   2019.471 |        152        0.02       98.25
   2019.474 |        361        0.05       98.30
     2019.5 |        482        0.07       98.37
   2019.519 |        273        0.04       98.41
   2019.522 |        674        0.10       98.51
   2019.527 |      5,148        0.74       99.24
    2019.54 |        395        0.06       99.30
    2019.57 |      1,168        0.17       99.47
   2019.571 |        712        0.10       99.57
     2019.6 |        116        0.02       99.59
   2019.667 |        776        0.11       99.70
   2019.772 |      2,028        0.29       99.99
       2020 |         92        0.01      100.00
------------+-----------------------------------
      Total |    699,013      100.00

. gen treatXalt=0

. replace treatXalt=1 if avg_old_code_prob>0&year>2014
(328,779 real changes made)

. egen rankgroup = group(avg_old_code_prob)

. //Note, the choice for using the did_multiplegt_dyn to estimate the 
. //Weighted average of the switchers slopes estimator stems from the July 1 2023 version 
. //of de Chaisemartin, D’Haultfoeuille, Pasquier, and Vazquez-Bare paper 
. //"Difference-in-Differences Estimators for Treatments Continuously Distributed at Every Period"
. //stems the statement "estimators can be computed by the did_multiplegt_dyn Stata package"
. //on page 4 along with the statement delta r "can be computed by the did_multiplegt Stata command"
. //on page 16. Specifically, we believe the use did_multiplegt_dyn with only one period (non-dynamic) effects
. //is equivalent to the origina did_multiplegt command following the discussions in "Comparing the did_multiplegt and did_multiplegt_dyn Stata commands"
. //January 2024 article by de Chaisemartin and co-authors which indicates that "When completed, did_multiplegt_dyn will supersede did_multiplegt"
. //and also "The two commands do not output different event-study and placebo effects when applied to a bal- anced panel of groups"
. //Finally, the version of the "did_multiplegt_dyn" for this analysis is dated  February 15, 2024.
. 
. did_multiplegt_dyn log_damage55 facility_id year treatXpost, normalize controls(n3fe_*)   effects(1) placebo(0) cluster(facility_id) 
Some control variables are not taken into account for groups with baseline treatment equal to: [0]
This may occur in the following situations:
1. For groups with those values of the baseline treatment,
the regression of the outcome first difference on the controls' first differences 
and time fixed effects has fewer observations than variables.
Note that for each value of the baseline treatment,
those regressions are estimated among (g,t)s such that g has not changed treatment yet at t.
2. For groups with those values of the baseline treatment, 
two or more of your control variables are perfectly collinear 
in the sample where the regression is run, for instance because those control variables do not vary over time.


--------------------------------------------------------------------------------
             Estimation of treatment effects: Event-study effects
--------------------------------------------------------------------------------

             |  Estimate         SE      LB CI      UB CI          N  Switchers 
-------------+------------------------------------------------------------------
    Effect_1 | -.0498977   .0184362  -.0860327  -.0137627      76218      74676 
--------------------------------------------------------------------------------


--------------------------------------------------------------------------------
    Estimation of treatment effects: Average total effect per treatment unit
--------------------------------------------------------------------------------

             |  Estimate         SE      LB CI      UB CI          N     Switch  x Periods 
-------------+-----------------------------------------------------------------------------
  Av_tot_eff | -.0498977   .0184362  -.0860327  -.0137627      76218      74676            
--------------------------------------------------------------------------------


The development of this package was funded by the European Union (ERC, REALLYCREDIBLE,GA N°101043899).

. 
. did_multiplegt_dyn log_emissions4 facility_id year treatXpost, normalize controls(n3fe_*)   effects(1) placebo(0) cluster(facility_id) 
Some control variables are not taken into account for groups with baseline treatment equal to: [0]
This may occur in the following situations:
1. For groups with those values of the baseline treatment,
the regression of the outcome first difference on the controls' first differences 
and time fixed effects has fewer observations than variables.
Note that for each value of the baseline treatment,
those regressions are estimated among (g,t)s such that g has not changed treatment yet at t.
2. For groups with those values of the baseline treatment, 
two or more of your control variables are perfectly collinear 
in the sample where the regression is run, for instance because those control variables do not vary over time.


--------------------------------------------------------------------------------
             Estimation of treatment effects: Event-study effects
--------------------------------------------------------------------------------

             |  Estimate         SE      LB CI      UB CI          N  Switchers 
-------------+------------------------------------------------------------------
    Effect_1 | -.0451116   .0165543   -.077558  -.0126652      76218      74676 
--------------------------------------------------------------------------------


--------------------------------------------------------------------------------
    Estimation of treatment effects: Average total effect per treatment unit
--------------------------------------------------------------------------------

             |  Estimate         SE      LB CI      UB CI          N     Switch  x Periods 
-------------+-----------------------------------------------------------------------------
  Av_tot_eff | -.0451116   .0165543   -.077558  -.0126652      76218      74676            
--------------------------------------------------------------------------------


The development of this package was funded by the European Union (ERC, REALLYCREDIBLE,GA N°101043899).

. log close
      name:  <unnamed>
       log:  /Users/wesleyblundell/Dropbox/Wes_Supplemental_NEI/JAERE_Replication/Replication_package/log/TABLE_4_COL2AND5PL.log
  log type:  text
 closed on:  15 May 2024, 16:18:44
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
